package com.Liux.blog.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "leave_msg")
public class LeaveMsg {
    /**
     * id
     */
    @Id
    private Integer id;

    /**
     * 留言者id
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 接收者id
     */
    @Column(name = "receive_user_id")
    private String receiveUserId;

    /**
     * 刘亚吧内容
     */
    private String center;

    /**
     * 留言时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 获取id
     *
     * @return id - id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置id
     *
     * @param id id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取留言者id
     *
     * @return user_id - 留言者id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 设置留言者id
     *
     * @param userId 留言者id
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取接收者id
     *
     * @return receive_user_id - 接收者id
     */
    public String getReceiveUserId() {
        return receiveUserId;
    }

    /**
     * 设置接收者id
     *
     * @param receiveUserId 接收者id
     */
    public void setReceiveUserId(String receiveUserId) {
        this.receiveUserId = receiveUserId;
    }

    /**
     * 获取刘亚吧内容
     *
     * @return center - 刘亚吧内容
     */
    public String getCenter() {
        return center;
    }

    /**
     * 设置刘亚吧内容
     *
     * @param center 刘亚吧内容
     */
    public void setCenter(String center) {
        this.center = center;
    }

    /**
     * 获取留言时间
     *
     * @return create_time - 留言时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置留言时间
     *
     * @param createTime 留言时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}